projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a417956
)
search entry: Add a tooltip to th clear icon
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 19 Feb 2019 05:32:35 +0000
(
00:32
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 19 Feb 2019 05:32:35 +0000
(
00:32
-0500)
Similar to what we do for the caps-lock warning in the
password entry.
Closes #1483
gtk/gtksearchentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtksearchentry.c
b/gtk/gtksearchentry.c
index b4c47f4c716be5f5fc37714a1b65308fe8e81dbe..a73e32963dfaf011cedde01d2ce83228d4bbd12d 100644
(file)
--- a/
gtk/gtksearchentry.c
+++ b/
gtk/gtksearchentry.c
@@
-505,6
+505,7
@@
gtk_search_entry_init (GtkSearchEntry *entry)
g_signal_connect (priv->entry, "activate", G_CALLBACK (activate_cb), entry);
priv->icon = gtk_image_new_from_icon_name ("edit-clear-symbolic");
+ gtk_widget_set_tooltip_text (priv->icon, _("Clear entry"));
gtk_container_add (GTK_CONTAINER (priv->box), GTK_WIDGET (priv->icon));
gtk_widget_hide (priv->icon);